from gglib.auth import login_required, logout
from gglib.packet import Packet


@login_required
def handle(session, packet):
    pkt = Packet(packet)
    pkt.errcode = 0
    logout(session)
    session.route_packet(pkt)

